#ifndef		__SUBWINCODE__
#define		__SUBWINCODE__

#include	<ncurses.h>

#include	"AWindow.hpp"
#include	"AColor.hpp"
#include	"ContentFile.hpp"
#include	"ScrollText.hpp"

class		SubWinCode : public AWindow, AColor
{
public:
  SubWinCode(unsigned int heightWinCode, unsigned int widthWincode, WINDOW *winCode, unsigned int widthSubWinWarning, unsigned int widthSubWinLines);
  ~SubWinCode();
  void		setContentWin(const char *name_file);
  ContentFile	*getContentTree()const;
  ScrollText	*getScrollText()const;
  virtual void	update(bool focus);
  virtual void	checkEvent(int event);
private:
  ContentFile	*_fileTree;
  ScrollText	*_scrollText;
};

#endif
